package com.ruoyi.web.controller.system;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LikeYouDo
 * @date 2023/12/7 20:29
 */

@RestController
public class MyTestController extends BaseController {

    /**
     *
     * 菜单权限
     *
     */
    @PreAuthorize("@ss.hasPermi('system:student:permTest')")
    @GetMapping("/permTest")
    public AjaxResult permTest(){
        return AjaxResult.success("permTest success");
    }
}
